package com.tencent.wxcloudrun.service.impl;

import com.tencent.wxcloudrun.dto.Shop;
import com.tencent.wxcloudrun.mapper.ShopMapper;
import com.tencent.wxcloudrun.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lichongbing
 * @version 1.0.0
 * @createdate 2023/3/14 19:02
 * @description: TODO
 */
@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    private ShopMapper shopMapper;
    @Override
    public Shop shopSubdetail(String shopIdZt) {
        Shop shop = shopMapper.selectByPrimaryKey(shopIdZt);
        return shop;
    }

    @Override
    public List<Shop> shopSubdetails() {
        List<Shop> shops = shopMapper.selectAll();
        return shops;
    }
}
